import request from '@/utils/request'

// 查询寝室楼层信息列表
export function listFloor(query) {
  return request({
    url: '/system/floor/list',
    method: 'get',
    params: query
  })
}

// 查询寝室楼层信息详细
export function getFloor(floorId) {
  return request({
    url: '/system/floor/' + floorId,
    method: 'get'
  })
}

// 新增寝室楼层信息
export function addFloor(data) {
  return request({
    url: '/system/floor',
    method: 'post',
    data: data
  })
}

// 修改寝室楼层信息
export function updateFloor(data) {
  return request({
    url: '/system/floor',
    method: 'put',
    data: data
  })
}

// 删除寝室楼层信息
export function delFloor(floorId) {
  return request({
    url: '/system/floor/' + floorId,
    method: 'delete'
  })
}
